package encrypt

// Encrypt 建造者加密接口
type Encrypt interface {
	level()
	key()
	iv()
}

// Builder 建造者管理类
type Builder struct {
	builder Encrypt
}

// NewBuilder 构造函数
func NewBuilder(encrypt Encrypt) *Builder {
	return &Builder{
		builder: encrypt,
	}
}

// Build 建造流程
func (s *Builder) Build() {
	s.builder.level()
	s.builder.iv()
	s.builder.key()
}
